package com.wyj.wuliwuli.entity.mapper;

import com.wyj.wuliwuli.entity.WuliUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author wyj
 * @version 1.0
 * @date 2022/2/14 18:13
 * @description
 */

public interface WuliUserMapper extends JpaRepository<WuliUser, Long> {

    /**
     * 根据用户名查找
     * @param username
     * @return
     */
    WuliUser findByUsername(String username);

    /**
     * 根据角色查询
     * @param role
     * @return
     */
    List<WuliUser> findByRole(String role);
}
